<?php
namespace app\baseinfo\validate;

class Product extends \app\common\validate\Base {
	protected $rule=[
		'serial_number|产品序列号'=>'length:5,30',
		'name|产品名称'=>'length:1,100',
		'brand|品牌'=>'length:1,20',
		'model|型号'=>'length:1,20',
		'spec|规格'=>'length:1,20',
		'unit|产品计量单位'=>'length:1,20',
		'price|参考价格'=>'number',
		'company_id|所属公司'=>'check_id:Company',
		'max_store_amount|最大库存'=>'number',
		'min_store_amount|最小库存'=>'number',
		'package_size|包装量'=>'number'
	];
	protected $create_require=['serial_number','name'];
}
?>